#pragma once
#include <fstream>
#include "image.h"
#include "pbo.h"

class File //TODO: rename
{
public:
	File(const char*);
	void read(PBO*);
	void save(PBO* pbo);

private:
	void readAsciiFile(PBO*);
	void readBinaryFile(PBO*);

	void saveAsciiFile(PBO*);
	void saveBinaryFile(PBO*);

	int getlineInt(std::ifstream &file);
	const char * name;

	void reverseMonoColor(Image* image);
};
